package util;

import java.awt.Cursor;
import java.awt.Point;
import java.awt.Toolkit;

import javax.swing.ImageIcon;

public class ImageCursor {
	
	public Cursor cursorProg;
	private Toolkit toolkit = Toolkit.getDefaultToolkit();

	public ImageCursor(){
		
	}
	
	public Cursor changeCursor(ImageIcon cursor){
		
		this.cursorProg = toolkit.createCustomCursor(cursor.getImage(), new Point(0,0), "tent");
		return cursorProg;
	}

}
